package com.supreme.commonentity.mysql.primary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName test
 */
@Data
@TableName(value = "test")
public class MBTest implements Serializable {

    public static <T> String cacheKey(T keyId) {
        return "TEST_CACHE_" + keyId;
    }

    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String firstName;

    /**
     * 
     */
    private String lastName;

    private static final long serialVersionUID = 1L;
}